package xyz.naokeziteng.data_structure;

/**
 * @author hawk
 * @date 2022/7/28
 * @desc 链表
 **/
public class LinkedList<E> {

    private Node head;
    private int size;


    //节点类
    private class Node {
        private E e;
        private Node next;

        public Node() {
        }

        public Node(E e) {
            this.e = e;
        }

        public Node(E e, Node next) {
            this.e = e;
            this.next = next;
        }
    }
}
